package com.xzy.learn.spring.bean.initialization.bean;

import com.xzy.learn.spring.entity.Student;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author xzy.xiao
 * @date 2022/6/1  17:07
 */
public class StudentB extends Student implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("initialization bean by StudentB::afterPropertiesSet()");
        this.setRemark("InitializingBean");
    }
}
